using System;
using System.Collections.Generic;
using System.Web;
using System.Web.SessionState;

namespace PlugNT.Cms.Web.Tools
{



    public class Pre_Adbanner : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {



            int classId = 0;
            int.TryParse(context.Request.QueryString["class_id"] as string, out classId);
            if (classId > 0)
            {
                string gtime = "var plugad_gtime=new Date(" + DateTime.Now.ToString("yyyy,MM,dd,HH,mm,ss") + ");\n";
                context.Response.Write(gtime + new PlugNT.Cms.BLL.Ad().CreateAdLinks(classId));
            }
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}

